package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 收据管理对象 m_cashier
 * 
 * @author lzt
 * @date 2024-05-09
 */
public class MCashier extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收据单号 */
    @Excel(name = "收据单号")
    private Long receipt;

    /** 订单号 */
    @Excel(name = "订单号")
    private Long number;

    /** 客户编号 */
    @Excel(name = "客户编号")
    private String cusId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 数量 */
    @Excel(name = "数量")
    private Integer quantity;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 订单日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 付款方式 */
    @Excel(name = "付款方式")
    private String payment;

    /** 付款金额 */
    @Excel(name = "付款金额")
    private BigDecimal money;

    /** 商品类型 */
    @Excel(name = "商品类型")
    private String type;

    /** 销售员编号 */
    @Excel(name = "销售员编号")
    private Integer userid;

    public void setReceipt(Long receipt) 
    {
        this.receipt = receipt;
    }

    public Long getReceipt() 
    {
        return receipt;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setCusId(String cusId) 
    {
        this.cusId = cusId;
    }

    public String getCusId() 
    {
        return cusId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setQuantity(Integer quantity) 
    {
        this.quantity = quantity;
    }

    public Integer getQuantity() 
    {
        return quantity;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setPayment(String payment) 
    {
        this.payment = payment;
    }

    public String getPayment() 
    {
        return payment;
    }
    public void setMoney(BigDecimal money) 
    {
        this.money = money;
    }

    public BigDecimal getMoney() 
    {
        return money;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setUserid(Integer userid) 
    {
        this.userid = userid;
    }

    public Integer getUserid() 
    {
        return userid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("receipt", getReceipt())
            .append("number", getNumber())
            .append("cusId", getCusId())
            .append("name", getName())
            .append("unit", getUnit())
            .append("quantity", getQuantity())
            .append("price", getPrice())
            .append("date", getDate())
            .append("payment", getPayment())
            .append("money", getMoney())
            .append("type", getType())
            .append("userid", getUserid())
            .toString();
    }
}
